Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to make go imports work as separated cmd. #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timesking
Copy link

goimports is useful tools, but if it is triggered in on-save, it is a little bit annoying when coding golang.
So, I duplicate go_fmt with new go_imports, in order to give user a chance to set up below keybinding to run goimports mannually.

So, the better user experience is , we set go_fmt while on-save, and use go_imports when we need it.

{
        "keys": ["super+.", "super+f"],
        "command": "gs_imports",
        "context": [{ "key": "selector", "operator": "equal", "operand": "source.go" }]
    },

goimports is useful tools, but if it is triggered in on-save, it is a little bit annoying when coding golang.
So, I duplicate go_fmt with new go_imports, in order to give user a chance to set up below keybinding to run goimports mannually.

So, the better user experience is , we set go_fmt while on-save, and use go_imports when we need it.

```
{
        "keys": ["super+.", "super+f"],
        "command": "gs_imports",
        "context": [{ "key": "selector", "operator": "equal", "operand": "source.go" }]
    },
```
@solicomo
Copy link

This is just what I want!

Please merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants